08. Quiz: Converting Temperatures (2-2)

To convert Celsius to Fahrenheit, you can use the following formula:

F=C\times1.8+32

Directions:

Use this equation and the variables fahrenheit and celsius to print the Fahrenheit equivalent of 12°C.

NOTE: "12°C" reads as "12 degrees Celsius".

Your Code:

Start Quiz:

/*
 * Programming Quiz: Converting Tempatures (2-2)
 *
 * The Celsius-to-Fahrenheit formula:
 *
 *    F = C x 1.8 + 32
 *
 * 1. Set the fahrenheit variable to the correct value using the celsius variable and the forumla above
 * 2. Log the fahrenheit variable to the console
 *
 */

var celsius = 12;
var fahrenheit = /* convert celsius to fahrenheit here */

console.log(/* print out result here */);

INSTRUCTOR NOTE:

Have questions? Head to Knowledge for discussion with the Udacity Community.